package com.skivingcloud.admin.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 岗位表
 * </p>
 *
 * @author skivingcloud
 * @since 2022-01-29
 */
@TableName("sys_station")
@ApiModel(value = "SysStation对象", description = "岗位表")
@JsonIgnoreProperties(ignoreUnknown = true)
public class SysStation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("版本")
    private Integer version;

    @ApiModelProperty("岗位编号")
    private String stationCode;

    @ApiModelProperty("岗位名称")
    private String stationName;

    @ApiModelProperty("简称")
    private String shortName;

    @ApiModelProperty("机构id")
    private String orgId;

    @ApiModelProperty("状态1-正常,2-禁用,3-删除")
    private String status;

    @ApiModelProperty("排序")
    private Integer ordernum;

    @ApiModelProperty("扩展分类例如:1-总经理、2-副总经理、3-分管领导、4-部门经理、5部门副经理、6-员工、9-其他")
    private String stationRank;

    @ApiModelProperty("创建人")
    private String creater;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("最后修改人")
    private String modUser;

    @ApiModelProperty("修改时间")
    private LocalDateTime modTime;

    @ApiModelProperty("租户")
    private String tenantId;

    /**
     * 资源权限
     */
    @TableField(exist = false)
    private String[] resId;
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }
    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }
    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public Integer getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(Integer ordernum) {
        this.ordernum = ordernum;
    }
    public String getStationRank() {
        return stationRank;
    }

    public void setStationRank(String stationRank) {
        this.stationRank = stationRank;
    }
    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getModUser() {
        return modUser;
    }

    public void setModUser(String modUser) {
        this.modUser = modUser;
    }
    public LocalDateTime getModTime() {
        return modTime;
    }

    public void setModTime(LocalDateTime modTime) {
        this.modTime = modTime;
    }
    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        return "SysStation{" +
                "id=" + id +
                ", version=" + version +
                ", stationCode=" + stationCode +
                ", stationName=" + stationName +
                ", shortName=" + shortName +
                ", orgId=" + orgId +
                ", status=" + status +
                ", ordernum=" + ordernum +
                ", stationRank=" + stationRank +
                ", creater=" + creater +
                ", createTime=" + createTime +
                ", modUser=" + modUser +
                ", modTime=" + modTime +
                ", tenantId=" + tenantId +
                "}";
    }
    
    /**
     * @return the resId
     */
    public String[] getResId() {
        return resId;
    }

    /**
     * @param resId the resId to set
     */
    public void setResId(String[] resId) {
        this.resId = resId;
    }

}
